import "./App.css";
import { BrowserRouter } from "react-router-dom";
// BrowserRouter HashRouter
import Router from "@/routers/index";
import { Provider } from "react-redux";
import store from "@/redux/index";
import useTheme from "@/hooks/useTheme";
import "@/styles/theme/theme-dark.less";
import "@/styles/theme/theme-default.less";

console.log("store", store.getState());
function App(props: any) {
  // 全局使用主题
  useTheme("default");

  return (
    <BrowserRouter>
      <Provider store={store}>
        <Router />
      </Provider>
    </BrowserRouter>
  );
}

export default App;
